package com.ruanmou.house.houseserver;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

import javax.sql.DataSource;

@SpringBootApplication(scanBasePackages = {
        "com.ruanmou.house"
})
public class HouseServerApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext run =
                SpringApplication.run(HouseServerApplication.class, args);
        DataSource bean = run.getBean(DataSource.class);
        System.out.println(bean.getClass());

    }
}
